import time
import pytest
from selenium.webdriver.common.by import By
from selenium import webdriver
from Tolls import Tolls
@pytest.fixture
def driver():
    Tolls().Log1()
    driver = webdriver.Edge()
    driver.get('http://10.59.9.12:7001/')
    yield driver
    time.sleep(2)
    driver.quit()
def test_a3mall(driver):
    driver.find_element(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a').click()
    driver.find_element(By.NAME,'username').send_keys('123455556666')
    driver.find_element(By.NAME,'password').send_keys('123456')
    time.sleep(7)
    driver.find_element(By.CLASS_NAME,'finish-btn').click()
    time.sleep(5)

if __name__ == '__main__':
    test_a3mall()